﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GameWatcher;
using System.Data;
using System.Configuration;

namespace FootBallMatchProject
{
    public partial class GameWatcher : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string RSSFeeds = ConfigurationManager.AppSettings["RSSFeeds"].ToString();
                List<ClassXMLItems> objDataSet = FootballWatcherServiceReader.ReadFeed(RSSFeeds);
                GridView1.DataSource = objDataSet;
                GridView1.DataBind();
            }

        }

        public void UpdateData(object sender, EventArgs args)
        {
            GridView2.DataBind();
        }
    }
}